import hashlib

def md5_encode(s):  # 注意这里的函数名
    return hashlib.md5(s.encode()).hexdigest()
# import hashlib
# def md5(c):
#     a = hashlib.md5()
#     a.update(c.encode('utf-8'))
#     b=a.hexdigest()
#     return b